Visual Studio Main Shortcuts
Editing
Ctrl+K,C – comment lineCtrl+K,U – uncomment lineCtrl+D – duplicate lineCtrl+Shift+L – delete line without adding it to the clipboardAlt+<Up/Down arrows> – move line up/down
Ctrl+K,F – format the selected blockCtrl+K,D – format the entire fileCtrl+K,E – clean up the code in the file (according to the rules you set, for example, removing unnecessary usings)
Ctrl+K,S – insert snippet (if, try, for block, etc.), or enclose the selected code in a blockAlt+Shift+<arrows> (Alt+<mouse selection>) – edit by columnsCtrl+Alt+<place the cursor with the mouse> – multi-cursor input (edit in several places at once)
Navigation
Ctrl+G – go to lineCtrl+K,K – leave bookmarkCtrl+K,N – go to next bookmark
Ctrl+, (Ctrl+T) – search by code in projectCtrl+Q – search by IDE tools
F12 (Ctrl+<mouse click>) – go to definitionAlt+F12 – peek definition (definition hint in inline window)Ctrl+F12 – go to implementationShift+F12 – find all references
Ctrl+Shift+space – method arguments hintCtrl+[,S – mark current file in solution explorerCtrl+; – search in solution explorer
Ctrl+M,O – collapse all methods to definitionsCtrl+M,P – expand all methodsCtrl+M,M – collapse/expand the current methodCtrl+M,L – collapse/expand all outlining
Shift+Alt+. – Add the next matching text as a selectionShift+Alt+; – Add all matching text as selectionsShift+Alt+, – Remove last selected occurrenceShift+Alt+/ – Skip next matching occurrence
For ASP.NETCtrl+M,G – go from a controller method to a view or vice versa
Refactoring
Ctrl+. (Alt+Enter) – refactoring hintsCtrl+R,R – renameCtrl+R,M – extract selected code to methodCtrl+R,I – extract interface from classCtrl+R,V (Ctrl+R,O) – reorganize method parameters
Snippets
"prop",Tab,Tab – create a property"ctor",Tab,Tab – create a constructor
Tab,Tab also works for other popular keywords (if, for, switch, etc.)
Debugging
F9 – create a breakpointCtrl+Alt+B – open window with all breakpointsCtrl+Shift+F9 – delete all breakpoints